
import 'package:flutter/material.dart';

//默认字体大小
double textSize_default = 16;

//主题色
const Color AppThemeColor = Color.fromRGBO(220, 220, 220, 1.0);

//屏幕宽高
double screenWidth(BuildContext context) => MediaQuery.of(context).size.width;

double screenHeight(BuildContext context) => MediaQuery.of(context).size.height;

double statusBarHeight(BuildContext context) => MediaQuery.of(context).padding.top; // 获取状态栏高度，用padding来占用top的距离

double appBarHeight(BuildContext context) => kToolbarHeight + (statusBarHeight(context) ?? 0.0);

double contentHight(BuildContext context) =>  screenHeight(context) - appBarHeight(context);

Color globalColor() {
  return const Color.fromRGBO(16, 37, 105, 1);
}
const itemBgColor = Colors.white;



